/*
 * @Description: 
 * @Date: 2021-11-24 14:08:14
 * @LastEditors: yrg
 * @LastEditTime: 2022-11-28 11:32:20
 * @FilePath: \code\25_Promise的使用\08-Promise对象方法-finally.js
 */
const promise = new Promise((resolve, reject) => {
  resolve("resolve message")
  // reject("reject message")
})

promise.then(res => {
  console.log("res:", res)
}).catch(err => {
  console.log("err:", err)
}).finally(() => {
  console.log('关闭弹窗的s')
  console.log("finally code execute")
})
